import request, {Reponse} from '../request';
import host from '../host';

let api: Reponse = request({
  getApiList: {
    url: `${host['ai-mc']}/v1/api-server/api`,
    method: 'get'
  },
  getApiInfoById: {
    url: `${host['ai-mc']}/v1/api-server/api/{id}`,
    method: 'get'
  },
  createApi: {
    url: `${host['ai-mc']}/v1/api-server/api`,
    method: 'post'
  },
  updateApi: {
    url: `${host['ai-mc']}/v1/api-server/api`,
    method: 'put'
  },
  deleteApiById: {
    url: `${host['ai-mc']}/v1/api-server/api/{id}`,
    method: 'delete'
  },
})

export default api;
